package com.srlg.liteflow.config;

import com.yomahub.liteflow.lifecycle.PostProcessFlowExecuteLifeCycle;
import com.yomahub.liteflow.slot.Slot;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
public class TestFlowExecuteLifeCycle implements PostProcessFlowExecuteLifeCycle {
    @Override
    public void postProcessBeforeFlowExecute(String chainId, Slot slot) {
        //do something
        log.info("TestFlowExecuteLifeCycle postProcessBeforeFlowExecute");
    }

    @Override
    public void postProcessAfterFlowExecute(String chainId, Slot slot) {
        //do something
        log.info("TestFlowExecuteLifeCycle postProcessAfterFlowExecute");
    }
}
